<%@page import="svn_photo.photoVo"%>
<%@page import="svn_photo.Photo"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>photoModify.jsp</title>
<style>
/*--------------------------스타일 적용----------------------------------*/
@import url(http://fonts.googleapis.com/earlyaccess/nanumgothic.css);
body {
	font-family: 'Nanum Gothic', sans-serif;
}
#holl{
	font-family: 'Nanum Gothic', sans-serif;
	width:1000px;
	hegiht:600px;
	margin:0 auto;
	padding-bottom: 50px;
}



#sub_title{
	font-family: 'Nanum Gothic', sans-serif;
	font-size:28px;
	font-style:#ffffff;
	background-color:#0fce84;
	position: relative;
	width: 70%;
	height: 30px;
	margin-top: 50px;
	margin-bottom:10px;
	padding-top: 10px;
	color:#ffffff;
	padding-bottom: 10px;

}

#Glr{
	font-family: 'Nanum Gothic', sans-serif;
	width:70%;
	text-align: center;
}

#Gleft{
	font-family: 'Nanum Gothic', sans-serif;
	height:100%;
	width:20%;
	margin-top:10px;
	border:1px solid #BDBDBD;
	float: left;
}

#left{
	font-family: 'Nanum Gothic', sans-serif;

	padding-top:10px;
	border:1px solid #BDBDBD;
	width:100%;
	height: 30px;
	text-align: center;
	font-size: 20px;

}

#Gright{
	font-family: 'Nanum Gothic', sans-serif;
	height:100%px;
	width:79%;
	text-align:'left';
	margin-top:10px;
	border:1px solid #BDBDBD;
	float: left;
	margin-left: 0px;
}
.right,.rightdate{
	font-family: 'Nanum Gothic', sans-serif;
	padding-top:10px;
 	border:1px solid #BDBDBD;
	width:100%;
	height: 30px;
	text-align: center;
	display: inline-block;
}
.rightdate input{
	font-family: 'Nanum Gothic', sans-serif;
	width:250px;
	height: 35px;
	margin-top:-10px;
	margin-left: 0px;
	display: inline-block;
	border:1px solid #aabbcc;
	padding-top:1px;

}
.right select{
	font-family: 'Nanum Gothic', sans-serif;
	text-align: left;
}

.right input{
	font-family: 'Nanum Gothic', sans-serif;
	width:99%;
	height:34px;
	margin-top:-10px;
	margin-left:0px;
}
#gisu{
	font-family: 'Nanum Gothic', sans-serif;
	width:50%;
	height:36px;
	margin-top:-10px;
	padding-left:0px;
	
}

#Gleft,#Gright{
	font-family: 'Nanum Gothic', sans-serif;
	display: inline-block;
}

.rightdetail{
	font-family: 'Nanum Gothic', sans-serif;
	border:1px solid #BDBDBD;
	width:100%;
	height: 200px;
	display: inline-block;
}
.rightfile input{
	height:36px;
	width:300px;
	text-align: center;

}

#sak{
	width:50px;
}

#leftdetail{
	font-family: 'Nanum Gothic', sans-serif;
	width:100%;
	height: 200px;
	border:1px solid #BDBDBD;
	font-size: 20px;
}

#Gbtn{
	font-family: 'Nanum Gothic', sans-serif;
	margin-top:10px;
	display: inline-block;
}
#ft{
	display:inline-block;
	margin: 10px;
}
#rightd{
	font-family: 'Nanum Gothic', sans-serif;
	width:98.7%;
	height:97%;
	padding-top:0px;
	resize:none;
}

</style>

<script src='photo_sc.js'></script>

</head>

<body>
<jsp:useBean id="vo" class="svn_photo.photoVo" />
<jsp:setProperty property="*" name="vo"/>
<%
Photo pv = new Photo();
pv.setVo(vo);
photoVo v= pv.view();

%>

<form name="frm_modify_save" method="post" action="" enctype='multipart/form-data'>

<div id='holl' align="center">

	<div id='sub_title' align="center" >
	포트폴리오 수정란
	</div>
	
	<div id='Glr' align='center'>
	<div id='Gleft'>
			<div id='left'>작 성 자</div>
			<div id='left'>프 로 젝 트 명</div>
			<div id='left'>암 호</div>
			<div id='left'>참 여 기 간</div>
			<div id='left'>요약</div>
			<div id='left'>참여자</div>
			<div id='left'>사용프로그램</div>
			<div id='left'>작업환경</div>
			<div id='left'>사진파일</div>
			<div id='leftdetail'>상세내용</div>
	</div>

	<div id='Gright'>
			<div class='right'><input type="text" value="<%=v.getMid()%>" id='m1' readonly></div>
			<div class='right'><input type="text" name="project" value='<%=v.getProject()%>'></div>
			<div class='right'><input type="password" name="pwd" value='' ></div>
			<input type="hidden" name='pwd12' id='pwd12' value='<%=v.getPwd()%>'>
						
			<div class='rightdate'><input type="date" name="gdate" value='<%=v.getGdate()%>'> ~ 
							<input type="date" name="jdate" value='<%=v.getJdate()%>'></div>
			<div class='right'><input type="text" name="summary" value="<%=v.getSummary()%>"></div>
			<div class='right'><input type="text" name="party"  value='<%=v.getParty()%>'></div>
			
	
			<div class='right'><input type="text" name="usedpro" value='<%=v.getUsedpro() %>'></div>
			<div class='right'><input type="text" name="workspace" value='<%=v.getWorkspace() %>'></div>
			<div class='rightfile'>
				<% if(v.getFilename() == null || vo.getFileDelFlag().equals("del")){ %>
					<INPUT TYPE="file" name="newfilename" >
					<INPUT TYPE="hidden"  value="<%=v.getFilename() %>" NAME="filename" >
				<% }else { %>
					<input type='text' name='filename' value="<%=v.getFilename() %>" id='rightfile1'>
					<input type="button" id='sak' value="삭제" onclick="fDel('del', <%=v.getSerial() %>, '<%=v.getFilename()%>')">
				<% } %>
			</div>
			
			
			
			<div class='rightdetail'><textarea id='rightd' name="content"  rows="7" cols="64" ><%=v.getContent()%></textarea></div>										
	
	</div>
	<div style="width: 100%; height: 10px; display: inline-block;"></div>
	
	<div align="center"><input type='button' value='확인' id='btModify'> <input type='button' value='목록' id='btList'></div>
	</div>
	<input type="hidden" name="fileDelFlag" value="<%=vo.getFileDelFlag() %>">
	<input type="hidden" name="serial" value="<%=v.getSerial()%>">
	</div>
	</form>
<script>init();</script>
<div style="width: 100%; height: 10px; display: inline-block;"></div>
</body>
</html>